3.169 \(\int \cot ^4(c+d x) (a+a \sec (c+d x))^{5/2} \, dx\)

Optimal. Leaf size=96 \[ \frac{2 a^2 \cot (c+d x) \sqrt{a \sec (c+d x)+a}}{d}+\frac{2 a^{5/2} \tan ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{a \sec (c+d x)+a}}\right )}{d}-\frac{2 a \cot ^3(c+d x) (a \sec (c+d x)+a)^{3/2}}{3 d} \]

[Out]

(2*a^(5/2)*ArcTan[(Sqrt[a]*Tan[c + d*x])/Sqrt[a + a*Sec[c + d*x]]])/d + (2*a^2*Cot[c + d*x]*Sqrt[a + a*Sec[c +
 d*x]])/d - (2*a*Cot[c + d*x]^3*(a + a*Sec[c + d*x])^(3/2))/(3*d)

________________________________________________________________________________________

Rubi [A]  time = 0.0760531, antiderivative size = 96, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.13, Rules used = {3887, 325, 203} \[ \frac{2 a^2 \cot (c+d x) \sqrt{a \sec (c+d x)+a}}{d}+\frac{2 a^{5/2} \tan ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{a \sec (c+d x)+a}}\right )}{d}-\frac{2 a \cot ^3(c+d x) (a \sec (c+d x)+a)^{3/2}}{3 d} \]

Antiderivative was successfully verified.

[In]

Int[Cot[c + d*x]^4*(a + a*Sec[c + d*x])^(5/2),x]

[Out]

(2*a^(5/2)*ArcTan[(Sqrt[a]*Tan[c + d*x])/Sqrt[a + a*Sec[c + d*x]]])/d + (2*a^2*Cot[c + d*x]*Sqrt[a + a*Sec[c +
 d*x]])/d - (2*a*Cot[c + d*x]^3*(a + a*Sec[c + d*x])^(3/2))/(3*d)

Rule 3887

Int[cot[(c_.) + (d_.)*(x_)]^(m_.)*(csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_))^(n_.), x_Symbol] :> Dist[(-2*a^(m/2 +
 n + 1/2))/d, Subst[Int[(x^m*(2 + a*x^2)^(m/2 + n - 1/2))/(1 + a*x^2), x], x, Cot[c + d*x]/Sqrt[a + b*Csc[c +
d*x]]], x] /; FreeQ[{a, b, c, d}, x] && EqQ[a^2 - b^2, 0] && IntegerQ[m/2] && IntegerQ[n - 1/2]

Rule 325

Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[((c*x)^(m + 1)*(a + b*x^n)^(p + 1))/(a*
c*(m + 1)), x] - Dist[(b*(m + n*(p + 1) + 1))/(a*c^n*(m + 1)), Int[(c*x)^(m + n)*(a + b*x^n)^p, x], x] /; Free
Q[{a, b, c, p}, x] && IGtQ[n, 0] && LtQ[m, -1] && IntBinomialQ[a, b, c, n, m, p, x]

Rule 203

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTan[(Rt[b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[b, 2]), x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

Rubi steps

\begin{align*} \int \cot ^4(c+d x) (a+a \sec (c+d x))^{5/2} \, dx &=-\frac{(2 a) \operatorname{Subst}\left (\int \frac{1}{x^4 \left (1+a x^2\right )} \, dx,x,-\frac{\tan (c+d x)}{\sqrt{a+a \sec (c+d x)}}\right )}{d}\\ &=-\frac{2 a \cot ^3(c+d x) (a+a \sec (c+d x))^{3/2}}{3 d}+\frac{\left (2 a^2\right ) \operatorname{Subst}\left (\int \frac{1}{x^2 \left (1+a x^2\right )} \, dx,x,-\frac{\tan (c+d x)}{\sqrt{a+a \sec (c+d x)}}\right )}{d}\\ &=\frac{2 a^2 \cot (c+d x) \sqrt{a+a \sec (c+d x)}}{d}-\frac{2 a \cot ^3(c+d x) (a+a \sec (c+d x))^{3/2}}{3 d}-\frac{\left (2 a^3\right ) \operatorname{Subst}\left (\int \frac{1}{1+a x^2} \, dx,x,-\frac{\tan (c+d x)}{\sqrt{a+a \sec (c+d x)}}\right )}{d}\\ &=\frac{2 a^{5/2} \tan ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{a+a \sec (c+d x)}}\right )}{d}+\frac{2 a^2 \cot (c+d x) \sqrt{a+a \sec (c+d x)}}{d}-\frac{2 a \cot ^3(c+d x) (a+a \sec (c+d x))^{3/2}}{3 d}\\ \end{align*}

Mathematica [C]  time = 0.229109, size = 81, normalized size = 0.84 \[ -\frac{2 \left (\frac{1}{\cos (c+d x)+1}\right )^{3/2} \cot ^3(c+d x) (a (\sec (c+d x)+1))^{5/2} \text{Hypergeometric2F1}\left (-\frac{3}{2},-\frac{3}{2},-\frac{1}{2},2 \sin ^2\left (\frac{1}{2} (c+d x)\right )\right )}{3 d \sqrt{\frac{1}{\sec (c+d x)+1}}} \]

Warning: Unable to verify antiderivative.

[In]

Integrate[Cot[c + d*x]^4*(a + a*Sec[c + d*x])^(5/2),x]

[Out]

(-2*((1 + Cos[c + d*x])^(-1))^(3/2)*Cot[c + d*x]^3*Hypergeometric2F1[-3/2, -3/2, -1/2, 2*Sin[(c + d*x)/2]^2]*(
a*(1 + Sec[c + d*x]))^(5/2))/(3*d*Sqrt[(1 + Sec[c + d*x])^(-1)])

________________________________________________________________________________________

Maple [B]  time = 0.279, size = 214, normalized size = 2.2 \begin{align*} -{\frac{{a}^{2}}{3\,d\sin \left ( dx+c \right ) \left ( -1+\cos \left ( dx+c \right ) \right ) }\sqrt{{\frac{a \left ( \cos \left ( dx+c \right ) +1 \right ) }{\cos \left ( dx+c \right ) }}} \left ( 3\,\sqrt{2}\cos \left ( dx+c \right ) \sin \left ( dx+c \right ) \sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}{\it Artanh} \left ( 1/2\,{\frac{\sqrt{2}\sin \left ( dx+c \right ) }{\cos \left ( dx+c \right ) }\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}} \right ) -3\,\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}\sqrt{2}{\it Artanh} \left ( 1/2\,{\frac{\sqrt{2}\sin \left ( dx+c \right ) }{\cos \left ( dx+c \right ) }\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}} \right ) \sin \left ( dx+c \right ) -8\, \left ( \cos \left ( dx+c \right ) \right ) ^{2}+6\,\cos \left ( dx+c \right ) \right ) } \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cot(d*x+c)^4*(a+a*sec(d*x+c))^(5/2),x)

[Out]

-1/3/d*a^2*(a*(cos(d*x+c)+1)/cos(d*x+c))^(1/2)*(3*2^(1/2)*cos(d*x+c)*sin(d*x+c)*(-2*cos(d*x+c)/(cos(d*x+c)+1))
^(1/2)*arctanh(1/2*2^(1/2)*(-2*cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*sin(d*x+c)/cos(d*x+c))-3*(-2*cos(d*x+c)/(cos(d
*x+c)+1))^(1/2)*2^(1/2)*arctanh(1/2*2^(1/2)*(-2*cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*sin(d*x+c)/cos(d*x+c))*sin(d*
x+c)-8*cos(d*x+c)^2+6*cos(d*x+c))/sin(d*x+c)/(-1+cos(d*x+c))

________________________________________________________________________________________

Maxima [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(d*x+c)^4*(a+a*sec(d*x+c))^(5/2),x, algorithm="maxima")

[Out]

Timed out

________________________________________________________________________________________

Fricas [A]  time = 1.99897, size = 888, normalized size = 9.25 \begin{align*} \left [\frac{3 \,{\left (a^{2} \cos \left (d x + c\right ) - a^{2}\right )} \sqrt{-a} \log \left (-\frac{8 \, a \cos \left (d x + c\right )^{3} - 4 \,{\left (2 \, \cos \left (d x + c\right )^{2} - \cos \left (d x + c\right )\right )} \sqrt{-a} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right ) - 7 \, a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right ) + 1}\right ) \sin \left (d x + c\right ) + 4 \,{\left (4 \, a^{2} \cos \left (d x + c\right )^{2} - 3 \, a^{2} \cos \left (d x + c\right )\right )} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}}}{6 \,{\left (d \cos \left (d x + c\right ) - d\right )} \sin \left (d x + c\right )}, \frac{3 \,{\left (a^{2} \cos \left (d x + c\right ) - a^{2}\right )} \sqrt{a} \arctan \left (\frac{2 \, \sqrt{a} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right )}{2 \, a \cos \left (d x + c\right )^{2} + a \cos \left (d x + c\right ) - a}\right ) \sin \left (d x + c\right ) + 2 \,{\left (4 \, a^{2} \cos \left (d x + c\right )^{2} - 3 \, a^{2} \cos \left (d x + c\right )\right )} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}}}{3 \,{\left (d \cos \left (d x + c\right ) - d\right )} \sin \left (d x + c\right )}\right ] \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(d*x+c)^4*(a+a*sec(d*x+c))^(5/2),x, algorithm="fricas")

[Out]

[1/6*(3*(a^2*cos(d*x + c) - a^2)*sqrt(-a)*log(-(8*a*cos(d*x + c)^3 - 4*(2*cos(d*x + c)^2 - cos(d*x + c))*sqrt(
-a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sin(d*x + c) - 7*a*cos(d*x + c) + a)/(cos(d*x + c) + 1))*sin(d*x +
 c) + 4*(4*a^2*cos(d*x + c)^2 - 3*a^2*cos(d*x + c))*sqrt((a*cos(d*x + c) + a)/cos(d*x + c)))/((d*cos(d*x + c)
- d)*sin(d*x + c)), 1/3*(3*(a^2*cos(d*x + c) - a^2)*sqrt(a)*arctan(2*sqrt(a)*sqrt((a*cos(d*x + c) + a)/cos(d*x
 + c))*cos(d*x + c)*sin(d*x + c)/(2*a*cos(d*x + c)^2 + a*cos(d*x + c) - a))*sin(d*x + c) + 2*(4*a^2*cos(d*x +
c)^2 - 3*a^2*cos(d*x + c))*sqrt((a*cos(d*x + c) + a)/cos(d*x + c)))/((d*cos(d*x + c) - d)*sin(d*x + c))]

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(d*x+c)**4*(a+a*sec(d*x+c))**(5/2),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(d*x+c)^4*(a+a*sec(d*x+c))^(5/2),x, algorithm="giac")

[Out]

Exception raised: NotImplementedError